gdk/x11: Transform XI_Motion based scroll into discrete
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 16 Dec 2020 13:07:13 +0000 (14:07 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 16 Dec 2020 13:26:44 +0000 (14:26 +0100)
commitc95a32def80e73b1e789c7109d48a6986379a65e
tree20db196dac3b8a4404bc6d8ddecaa27a5bc2409c
parent2192bb3dde2ad3c666b3087470e0af5dcfdaf371
gdk/x11: Transform XI_Motion based scroll into discrete

Depending on the input driver, we will get XI_Motion based scroll
events for regular mouse wheels. These are intended to be handled
as discrete scroll, so detect smooth scroll events that move by
exactly 1.0 in either direction.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3459
gdk/x11/gdkdevicemanager-xi2.c